﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 评论系统, 实体类
    /// </summary>
    public class CommentBase
    {
        #region 内部字段
        private string commentid = "{00000000-0000-0000-0000-000000000000}";
        private string title;
        private string comments;
        private string comments1;
        private string comments2;
        private string author;
        private string authorid = "{00000000-0000-0000-0000-000000000000}";
        private int goodcounter;
        private int badcounter;
        private string regardingobjectid;
        private string regardingobjectidname;
        private int regardingobjecttypecode;
        private DateTime createdon;
        private string createdby = "{00000000-0000-0000-0000-000000000000}";
        private DateTime modifyon;
        private string modifyby = "{00000000-0000-0000-0000-000000000000}";
        private int statuscode;
        private string approvedby = "{00000000-0000-0000-0000-000000000000}";
        private DateTime approvedon;
        #endregion 

        public CommentBase()
        { 
        
        }

        #region 公共属性
        /// <summary>
        /// 
        /// </summary>
        public string CommentId
        {
            set { commentid = value; }
            get { return commentid; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { title = value; }
            get { return title; }
        }
        /// <summary>
        /// 内容1
        /// </summary>
        public string Comments
        {
            set { comments = value; }
            get { return comments; }
        }
        /// <summary>
        /// 内容2
        /// </summary>
        public string Comments1
        {
            set { comments1 = value; }
            get { return comments1; }
        }
        /// <summary>
        /// 内容3
        /// </summary>
        public string Comments2
        {
            set { comments2 = value; }
            get { return comments2; }
        }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author
        {
            set { author = value; }
            get { return author; }
        }
        /// <summary>
        /// 作者ID
        /// </summary>
        public string AuthorId
        {
            set { authorid = value; }
            get { return authorid; }
        }
        /// <summary>
        /// 计数器，好
        /// </summary>
        public int GoodCounter
        {
            set { goodcounter = value; }
            get { return goodcounter; }
        }
        /// <summary>
        /// 计数器，不好
        /// </summary>
        public int BadCounter
        {
            set { badcounter = value; }
            get { return badcounter; }
        }
        /// <summary>
        /// 关联对象ID
        /// </summary>
        public string RegardingObjectId
        {
            set { regardingobjectid = value; }
            get { return regardingobjectid; }
        }
        /// <summary>
        /// 关联对象名称，如产品名
        /// </summary>
        public string RegardingObjectIdName
        {
            set { regardingobjectidname = value; }
            get { return regardingobjectidname; }
        }
        /// <summary>
        /// 关联实体类型，1 产品库
        /// </summary>
        public int RegardingObjectTypeCode
        {
            set { regardingobjecttypecode = value; }
            get { return regardingobjecttypecode; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreatedOn
        {
            set { createdon = value; }
            get { return createdon; }
        }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedBy
        {
            set { createdby = value; }
            get { return createdby; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModifyOn
        {
            set { modifyon = value; }
            get { return modifyon; }
        }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyBy
        {
            set { modifyby = value; }
            get { return modifyby; }
        }
        /// <summary>
        /// 状态，0  未审核， 1 已审核，-1 已屏蔽
        /// </summary>
        public int StatusCode
        {
            set { statuscode = value; }
            get { return statuscode; }
        }
        /// <summary>
        /// 审核人
        /// </summary>
        public string ApprovedBy
        {
            set { approvedby = value; }
            get { return approvedby; }
        }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime ApprovedOn
        {
            set { approvedon = value; }
            get { return approvedon; }
        }
        #endregion 
    }
}
